//
//  GJGCChatInputExpandMenuPanelDataSource.m
//  ZYChat
//
//  Created by ZYVincent on 14-10-28.
//  Copyright (c) 2014年 ZYProSoft. All rights reserved.
//

#import "GJGCChatInputExpandMenuPanelDataSource.h"


/**
 *  重要提示
 *
 *  新增扩展面板功能的时候在GJGCChatInputConst.h增加一个新的动作类型
 *  然后在这里创建一个Item绑定新增加的动作类型
 */

@implementation GJGCChatInputExpandMenuPanelDataSource

+ (NSArray *)menuItemDataSourceWithConfigModel:(GJGCChatInputExpandMenuPanelConfigModel *)configModel
{
    return [GJGCChatInputExpandMenuPanelDataSource menuPanelDataSource];
}

+ (NSArray *)postPanelDataSource
{
    NSMutableArray *dataSource = [NSMutableArray array];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource photoLibraryMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource cameraMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource videoRecordMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource voiceMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource videoMenuPanelItem]];
    
    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource myFavoritePostMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource personalCardMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource burnAfterReadRecordMenuPanelItem]];


    return dataSource;
}

+ (NSArray *)groupPanelDataSource
{
    NSMutableArray *dataSource = [NSMutableArray array];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource photoLibraryMenuPanelItem]];
    
    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource cameraMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource videoRecordMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource personalCardMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource burnAfterReadRecordMenuPanelItem]];

    
    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource groupCallMenuPanelItem]];
    
    return dataSource;
}

+ (NSArray *)menuPanelDataSource
{
    NSMutableArray *dataSource = [NSMutableArray array];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource photoLibraryMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource cameraMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource videoRecordMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource voiceMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource videoMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource personalCardMenuPanelItem]];

    [dataSource addObject:[GJGCChatInputExpandMenuPanelDataSource burnAfterReadRecordMenuPanelItem]];
    
    return dataSource;
}

+ (NSDictionary *)cameraMenuPanelItem
{
    return @{
             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"相机",
             
             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_camera",
             
             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_camera",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeCamera)
             };
}
+ (NSDictionary *)photoLibraryMenuPanelItem
{
    return @{
             
             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"照片库",
             
             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_photo",
             
             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_photo",
             
             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypePhotoLibrary)
             
             };
}
+ (NSDictionary *)videoRecordMenuPanelItem
{
    return @{

             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"短视频",

             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_video",

             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_video",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeLimitVideo)
             };
}

+ (NSDictionary *)burnAfterReadRecordMenuPanelItem
{
    return @{
             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"阅后即焚",

             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_camera",

             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_camera",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeBurnAfterRead)
             };
}
+ (NSDictionary *)personalCardMenuPanelItem
{
    return @{

             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"个人名片",

             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_share",

             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_share",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypePersonalCard)
             };
}
+ (NSDictionary *)voiceMenuPanelItem
{
    return @{

             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"语音通话",

             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_call",

             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_call",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeVoice)

             };
}
+ (NSDictionary *)videoMenuPanelItem
{
    return @{

             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"视频通话",

             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"im_chat_fc_video",

             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"im_chat_fc_video",

             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeVideo)

             };
}

+ (NSDictionary *)myFavoritePostMenuPanelItem
{
    return @{
             
             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"收藏夹",
             
             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"聊天键盘-icon-选择帖子",
             
             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"聊天键盘-icon-选择帖子-点击",
             
             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeMyFavoritePost)
             
             };
}

+ (NSDictionary *)groupCallMenuPanelItem
{
    return @{
             
             GJGCChatInputExpandMenuPanelDataSourceTitleKey:@"群主召唤",
             
             GJGCChatInputExpandMenuPanelDataSourceIconNormalKey:@"聊天键盘-icon-群主召唤",
             
             GJGCChatInputExpandMenuPanelDataSourceIconHighlightKey:@"聊天键盘-icon-群主召唤-点击",
             
             GJGCChatInputExpandMenuPanelDataSourceActionTypeKey:@(GJGCChatInputMenuPanelActionTypeGroupCall)
             
             };
}


@end
